﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Game.Character.Choice
{
    public class CharacterBaseInformations : CharacterMinimalPlusLookInformations
    {
        public byte Breed { get; set; }
        public bool Sex { get; set; }

        public CharacterBaseInformations(byte breed, bool sex, int id, byte level, string name, Look.EntityLook look)
            : base(id, level, name, look)
        {
            this.Breed = breed;
            this.Sex = sex;
        }

        public void Serialize(NetworkMessage message)
        {
            base.Serialize(message);
            message.WriterBuffer.writeByte(this.Breed);
            message.WriterBuffer.writeBoolean(this.Sex);
        }
    }
}
